package com.ruoyi.develop.goodsOrderMaterials.domain;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.develop.goodsOrderIn.domain.GoodsOrderIn;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存产品拆解物料配置对象 goods_order_materials
 *
 * @author qh
 * @date 2025-03-13
 */
public class GoodsOrderMaterials extends BaseEntity {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    private String id;

    /** 产品id */
    @Excel(name = "产品id")
    private String goodsId;

    /** 物料id */
    @Excel(name = "物料id")
    private String materialId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String goodsCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String goodsName;

    /** 物料类型 0-金具 1-产品 */
    @Excel(name = "物料类型 0-金具 1-产品")
    private String goodsType;

    /** 物料型号明细 */
    @Excel(name = "物料型号明细")
    private String goodsBrand;

    /** 物料型号 */
    @Excel(name = "物料型号")
    private String goodModel;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String goodsUnit;

    /** 物料数量 */
    @Excel(name = "物料数量")
    private BigDecimal goodsCount;

    /** 物料单价 */
    @Excel(name = "物料单价")
    private BigDecimal goodsBuyPrice;

    /** 物料总价 */
    @Excel(name = "物料总价")
    private BigDecimal goodsBuyTotal;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    List<GoodsOrderIn> columns;

    public List<GoodsOrderIn> getColumns() {
        return columns;
    }

    public void setColumns(List<GoodsOrderIn> columns) {
        this.columns = columns;
    }

    public void setId(String id)
            {
            this.id = id;
            }

    public String getId()
            {
            return id;
            }
    public void setGoodsId(String goodsId)
            {
            this.goodsId = goodsId;
            }

    public String getGoodsId()
            {
            return goodsId;
            }
    public void setMaterialId(String materialId)
            {
            this.materialId = materialId;
            }

    public String getMaterialId()
            {
            return materialId;
            }
    public void setGoodsCode(String goodsCode)
            {
            this.goodsCode = goodsCode;
            }

    public String getGoodsCode()
            {
            return goodsCode;
            }
    public void setGoodsName(String goodsName)
            {
            this.goodsName = goodsName;
            }

    public String getGoodsName()
            {
            return goodsName;
            }
    public void setGoodsType(String goodsType)
            {
            this.goodsType = goodsType;
            }

    public String getGoodsType()
            {
            return goodsType;
            }
    public void setGoodsBrand(String goodsBrand)
            {
            this.goodsBrand = goodsBrand;
            }

    public String getGoodsBrand()
            {
            return goodsBrand;
            }
    public void setGoodModel(String goodModel)
            {
            this.goodModel = goodModel;
            }

    public String getGoodModel()
            {
            return goodModel;
            }
    public void setGoodsUnit(String goodsUnit)
            {
            this.goodsUnit = goodsUnit;
            }

    public String getGoodsUnit()
            {
            return goodsUnit;
            }
    public void setGoodsCount(BigDecimal goodsCount)
            {
            this.goodsCount = goodsCount;
            }

    public BigDecimal getGoodsCount()
            {
            return goodsCount;
            }
    public void setGoodsBuyPrice(BigDecimal goodsBuyPrice)
            {
            this.goodsBuyPrice = goodsBuyPrice;
            }

    public BigDecimal getGoodsBuyPrice()
            {
            return goodsBuyPrice;
            }
    public void setGoodsBuyTotal(BigDecimal goodsBuyTotal)
            {
            this.goodsBuyTotal = goodsBuyTotal;
            }

    public BigDecimal getGoodsBuyTotal()
            {
            return goodsBuyTotal;
            }
    public void setDelFlag(String delFlag)
            {
            this.delFlag = delFlag;
            }

    public String getDelFlag()
            {
            return delFlag;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }
    public void setSource(String source)
            {
            this.source = source;
            }

    public String getSource()
            {
            return source;
            }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("goodsId",getGoodsId())
            .append("materialId",getMaterialId())
            .append("goodsCode",getGoodsCode())
            .append("goodsName",getGoodsName())
            .append("goodsType",getGoodsType())
            .append("goodsBrand",getGoodsBrand())
            .append("goodModel",getGoodModel())
            .append("goodsUnit",getGoodsUnit())
            .append("goodsCount",getGoodsCount())
            .append("goodsBuyPrice",getGoodsBuyPrice())
            .append("goodsBuyTotal",getGoodsBuyTotal())
            .append("delFlag",getDelFlag())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
            .append("remark",getRemark())
            .append("status",getStatus())
            .append("source",getSource())
        .toString();
    }
}
